package asteroids.model.programs;

import be.kuleuven.cs.som.annotate.Basic;
import be.kuleuven.cs.som.annotate.Immutable;



public class GetGlobal extends BasicExpression<Object>{
	
	
	public GetGlobal(String value) {
		this.value = value;
	}


	
    @Override
	@Basic @Immutable
	public Object getValue(Program program) {
		return program.getGlobals().get(value).getValue();
	}

	
	private final String value;

	


	
	
}
